  -- Dalliah the Doomsayer --
function spell0_20885(pUnit, Event) --@Gift of the Doomsayer,n/a--
pUnit:FullCastSpellOnTarget(36173,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20885', 11500, 1)
end
function spell1_20885(pUnit, Event) --@Gift of the Doomsayer,n/a--
pUnit:FullCastSpellOnTarget(39009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20885', 11500, 1)
end
function spell2_20885(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(36144,pUnit)
pUnit:RegisterEvent('Sorts_20885', 2500, 1)
end
function spell3_20885(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(39013,pUnit)
pUnit:RegisterEvent('Sorts_20885', 1500, 1)
end
function spell4_20885(pUnit, Event) --@Shadow Wave,Heal--
pUnit:FullCastSpellOnTarget(39016,pUnit)
pUnit:RegisterEvent('Sorts_20885', 16500, 1)
end
function spell5_20885(pUnit, Event) --@Whirlwind,Heal--
pUnit:FullCastSpellOnTarget(36175,pUnit)
pUnit:RegisterEvent('Sorts_20885', 840, 1)
end
function spell6_20885(pUnit, Event) --@Whirlwind,Heal--
pUnit:FullCastSpellOnTarget(36142,pUnit)
pUnit:RegisterEvent('Sorts_20885', 6000, 1)
end
function Sorts_20885(pUnit, Event)
choix_sorts_20885 = math.random(0, 6)
if choix_sorts_20885 == 0 then
pUnit:RegisterEvent('spell0_20885', 1, 1)
end
if choix_sorts_20885 == 1 then
pUnit:RegisterEvent('spell1_20885', 1, 1)
end
if choix_sorts_20885 == 2 then
pUnit:RegisterEvent('spell2_20885', 1, 1)
end
if choix_sorts_20885 == 3 then
pUnit:RegisterEvent('spell3_20885', 1, 1)
end
if choix_sorts_20885 == 4 then
pUnit:RegisterEvent('spell4_20885', 1, 1)
end
if choix_sorts_20885 == 5 then
pUnit:RegisterEvent('spell5_20885', 1, 1)
end
if choix_sorts_20885 == 6 then
pUnit:RegisterEvent('spell6_20885', 1, 1)
end
end
function mob20885_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20885', math.random(1500, 3000), 1)
end
function mob20885_Leave(pUnit, Event)
end
function mob20885_Kill(pUnit, Event)
end
function mob20885_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(20885, 1, 'mob20885_Action')
RegisterUnitEvent(20885, 2, 'mob20885_Leave')
RegisterUnitEvent(20885, 3, 'mob20885_Kill')
RegisterUnitEvent(20885, 4, 'mob20885_Die')
